
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>流水号</th>
		<th>产品</th>
		<th>事由</th>
		<th>类型</th>
		<th>数量</th>
		<th>毛重(公斤)</th>
		
		<th>方式</th>
		<th>付款</th>
		<th>安排</th>
		<th>提单号</th>		
		
		<th>录入员</th>
		<th>状态</th>
		<th>创建日期</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} 
	{[assign var="no" value="`$key+1`"]}
	{[assign var="t1" value="`$t1+$item.quantity`"]}
	{[assign var="t2" value="`$t2+$item.weight2`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td><a href="javascript:void(0)"
			onclick="Common.dialog_view_('{[$root]}{[$viewLink]}&id={[$item.id]}', '查看信息', '650x400')">{[$item.id]}</a></td>
		<td><a href="javascript:void(0)" onclick="mold({[$item.mold]})">{[$item.mold_t]}</a></td>
		<td>{[$item.name|truncate:21:"...":true]}</td>
		<td>{[$item.type_t]}</td>
				
		<td>{[$item.quantity|string_float]}</td>
		<td>{[$item.weight2|string_float]}</td>
		
		<td>{[$item.way_t]}</td>
		<td>{[$item.payment_t]}</td>
		<td><a href="javascript:void(0)" onclick="express_plan({[$item.plan]})">{[$item.p.s]}</a></td>
		<td><a href="javascript:void(0)" onclick="Track.number(event, '{[$item.p.supplier]}', '{[$item.p.number]}', '{[$item.p.createtime]}')">{[$item.p.number|bank]}</a></td>
				
		<td><a href="javascript:void(0)" onclick="emp({[$item.oper]})">{[$item.oper_t]}</a></td>
		<td>{[$item.status_t]}</td>
		<td>{[$item.createtime|date_format:'%Y-%m-%d']}</td>
	</tr>
	{[/foreach]}
</table>

<script type="text/javascript" src="js/express/track.js?r={[$smarty.now]}"></script>
<script type="text/javascript">

function express_plan(id) {
	var url = "express.php?do=Plan.view&id=" + id;
	Common.dialog_view_(url, '货运安排', '800x500');
}

</script>

